CXX = g++
CXXFLAGS = -g -Wall -Ilibevent/include
LDFLAGS = -Llibevent/.libs -levent_core

all:
	$(CXX) $(CXXFLAGS) -o blue_redir redir.cpp main.cpp log.cpp util.cpp getopt.cpp conf.cpp $(LDFLAGS)
	$(CXX) $(CXXFLAGS) -o blue_server server.cpp main.cpp log.cpp util.cpp getopt.cpp conf.cpp $(LDFLAGS)
	
clean:
	rm -f blue_redir blue_server
	
	